
#source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'
#use_frameworks!
 
target 'jobClient' do

pod 'AFNetworking'
pod 'SDWebImage'
pod 'FLAnimatedImage'
pod 'Masonry'
pod 'FMDB'
pod 'MBProgressHUD'
pod 'SocketRocket'
pod 'YLGIFImage'
pod 'EChart'
pod 'TYPagerController'
pod 'MJExtension'
pod 'YTKNetwork'
pod 'MJRefresh'
pod 'DZNEmptyDataSet'
pod 'MXParallaxHeader'
pod 'UICKeyChainStore'
pod 'AMap2DMap'
pod 'AMapSearch', '~> 7.7.0'
#pod 'JMessage', '~> 3.9.1'
pod 'WebViewJavascriptBridge', '~> 6.0'

pod 'UMCommon'
pod 'UMDevice'
pod 'UMAPM'
pod 'YYModel'

pod 'UMShare/UI'
pod 'UMShare/Social/QQ'
pod 'UMShare/Social/DingDing'
# 友盟微信分享和微信支付冲突解决
pod 'UMShareWeChat'

pod 'SDCycleScrollView'

pod 'TXLiteAVSDK_Professional', '~> 9.3.10763'

pod 'BRPickerView'
pod 'TZImagePickerController'
pod 'NTESLiveDetect', '~> 3.0.1'
pod 'NTESQuickPass', '~> 3.2.6'
pod 'IQKeyboardManager'
pod 'libOpenInstallSDK'

pod 'JXCategoryView'
pod 'JXPagingView/Pager'

## 保利威 多场景 SDK---2025-02-05正式删除不用了
#pod 'PLVLiveScenesSDK', '~> 1.10.3', :subspecs => ['BaseSDK', 'Core', 'Player']
#pod 'AgoraRtcEngine_iOS', '3.6.0.1'
#pod 'AliyunOSSiOS', '~> 2.10.8'
#pod 'PLVAliHttpDNS', '~> 1.10.0'
#pod 'PLVModel', '~> 1.0.4'
#pod 'PLVSocketIOClientSwift', '~> 0.1.0'
#pod 'SSZipArchive', '~> 2.1.5'
#pod 'UCloudRtcSdk', '1.9.2.9'
##pod 'TXLiteAVSDK_TRTC', '9.3.10763'
#pod 'WCDB', '~> 1.0.7.5' #新版本需要
#pod 'PLVImagePickerController', '~> 0.1.2' # 仅手机开播场景需要
#pod 'SVGAPlayer', '~> 2.3'
## 保利威 多场景 SDK---2025-02-05正式删除不用了

pod 'lottie-ios', :git => 'https://gitee.com/dog-third/lottie-ios.git', :tag => '2.5.3'

# swift
pod "PullToRefreshKit"
pod 'XHWebImageAutoSize' #自适应图片

## 腾讯SDK 集成聊天功能
#pod 'TUIChat/UI_Classic'
## 集成会话功能
#pod 'TUIConversation/UI_Classic'

# 集成聊天功能
pod 'TUIChat', :path => "./TUIKit/TUIChat"
# 集成会话功能
pod 'TUIConversation', :path => "./TUIKit/TUIConversation"

# 图表
pod 'AAChartKit', :git => 'https://github.com/AAChartModel/AAChartKit.git'

end

#Pods config
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['GENERATE_INFOPLIST_FILE'] = "NO"
            #Fix Xcode14 Bundle target error
            config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
            config.build_settings['ENABLE_BITCODE'] = "NO"
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = "13.0"
            #Fix Xcode15 other links  flag  -ld64
            xcode_version = `xcrun xcodebuild -version | grep Xcode | cut -d' ' -f2`.to_f
            if xcode_version >= 15
              xcconfig_path = config.base_configuration_reference.real_path
              xcconfig = File.read(xcconfig_path)
              if xcconfig.include?("OTHER_LDFLAGS") == false
                xcconfig = xcconfig + "\n" + 'OTHER_LDFLAGS = $(inherited) "-ld64"'
              else
                if xcconfig.include?("OTHER_LDFLAGS = $(inherited)") == false
                  xcconfig = xcconfig.sub("OTHER_LDFLAGS", "OTHER_LDFLAGS = $(inherited)")
                end
                if xcconfig.include?("-ld64") == false
                  xcconfig = xcconfig.sub("OTHER_LDFLAGS = $(inherited)", 'OTHER_LDFLAGS = $(inherited) "-ld64"')
                end
              end
              File.open(xcconfig_path, "w") { |file| file << xcconfig }
            end
        end
    end
end
